<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{   
    /**
     * Init Config
     */
    protected function _initConfig()
    {
        $options = $this->getOptions();
        Zend_Registry::set('Zend_Config', $options);
    }
    
    /**
     * Init Rest Route
     */
    protected function _initRestRoute()
    {
        $this->bootstrap('frontController');
        $frontController = Zend_Controller_Front::getInstance();
        $restRoute = new Zend_Rest_Route($frontController);
        $frontController->getRouter()->addRoute('default', $restRoute);
    }
}

